# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=nvim-cmp-luasnip
pkgver=0.0.0_git20220501
_commit=a9de941bcbda508d0a45d28ae366bb3f08db2e36
pkgrel=0
pkgdesc="luasnip completion source for nvim-cmp"
url="https://github.com/saadparwaiz1/cmp_luasnip"
arch="noarch"
license="Apache-2.0"
subpackages="$pkgname-doc"
depends="nvim-cmp"
source="https://github.com/saadparwaiz1/cmp_luasnip/archive/$_commit/nvim-cmp-$pkgver.tar.gz"
builddir="$srcdir/cmp_luasnip-$_commit"
options="!check" # no tests

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra after lua "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
5e32c074e425c36b0724f95b91516e4885eb6da0e319f12157460bffe45aad3bd2d04d27d0f09033aee2bc372c86cf58d4f7b5310d42de6a2d47ceef571cb5ea  nvim-cmp-0.0.0_git20220501.tar.gz
"
